/**
 *
 * 用户管理模块
 *
 * @author leon
 * @createTime '2018/8/16'
 */


const Main = () => import( '@/views/main');

const MallList = () => import('@/views/mall/list');
const MallDetail = () => import('@/views/mall/detail');
const CartList = () => import('@/views/mall/cart');
const GoodInfo = () => import('@/views/mall/goodInfo');

export default [
    {
        path: '/mall',
        name: 'mall',
        meta: {name: '商城', unfold: true,icon:'el-icon-goods'},
        component: Main,
        children: [
            {
                path: 'list',
                name: 'mallList',
                component: MallList,
                meta: {
                    requireAuth: true,
                    name: '周边'
                },
                children: [
                    {
                        path: 'detail',
                        name: 'mallDetail',
                        component: MallDetail,
                        meta: {
                            requireAuth: true,
                            name: '详情'
                        }
                    },
                    {
                        path:'good-info',
                        name:'goodInfo',
                        component:GoodInfo,
                        meta:{
                            requireAuth: true,
                            name: '上架'
                        }
                    }
                ]
            },
            {
                path: 'cart',
                name: 'cartList',
                component: CartList,
                meta: {
                    requireAuth: true,
                    name: '购物车'
                }
            }

        ],
        redirect: {
            name: 'mallList'
        }
    }
]
